﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebUI.library
{
    public partial class index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            loadLib();
        }
        void loadLib()
        {
            dlLIb.DataSource= DMS.Logic.BL.getInstance().getAllDocumentLibrary();
            dlLIb.DataBind();
        }

        protected void dlLIb_ItemCommand(object source, DataListCommandEventArgs e)
        {
            if (e.CommandName == "go")
            {
                Response.Redirect("../folders/index.aspx?id="+e.CommandArgument);
            }
        }
    }
}
